from page.bastionhost.entity.HostGroup import HostGroup

#
# class SSHInteractive(object):
#     """
#     启动堡垒机交互脚本
#     """
#
#     def __init__(self, argv_handler_instance):
#         self.argv_handler_instance = argv_handler_instance
#         self.interactive()
#
#     def show_host_groups(self, selected_group, group_type=True):
#         msg = """
#         Host Groups:
#         %s
#         """
#         host_groups = HostGroup.objects.all()
#         group_list = []
#         for i, group in enumerate(host_groups):
#             group_list.append("[ %s ]\t%s (%s 台)" % (i, group.name, group.host_to_remote_user.count()))
#
#         group_list.append("[z]\t未分组主机 (%s 台)" % user.host_to_remote_user.count())
